import request from '@/utils/request'

// 查询电影和演员对应列表
export function listMovieactor(query) {
  return request({
    url: '/cinema/cinema/movieactor/list',
    method: 'get',
    params: query
  })
}

// 查询电影和演员对应详细
export function getMovieactor(movieActorId) {
  return request({
    url: '/cinema/cinema/movieactor/' + movieActorId,
    method: 'get'
  })
}

// 新增电影和演员对应
export function addMovieactor(data) {
  return request({
    url: '/cinema/cinema/movieactor',
    method: 'post',
    data: data
  })
}

// 修改电影和演员对应
export function updateMovieactor(data) {
  return request({
    url: '/cinema/cinema/movieactor',
    method: 'put',
    data: data
  })
}

// 删除电影和演员对应
export function delMovieactor(movieActorId) {
  return request({
    url: '/cinema/cinema/movieactor/' + movieActorId,
    method: 'delete'
  })
}

// 导出电影和演员对应
export function exportMovieactor(query) {
  return request({
    url: '/cinema/cinema/movieactor/export',
    method: 'get',
    params: query
  })
}